import { StoreOptions } from "vuex";

export default {
    namespaced: true,
    state: () => ({
        loginUser: {
            userId:0,
            userName: "cac",
            userIdentity: "user",
            classId:1000,
        },
    }),
    //用actions去控制mutations，mutations再去控制前端显示
    actions: {
    },
    mutations: {
        updateUser(state, payload) {
            state.loginUser=payload;
        }
    },
} as StoreOptions<any>;